﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditBranchCtrl.ascx.cs" Inherits="WebUI.Controls.EditBranchCtrl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<script type="text/javascript">
    function getCopyCheckbox() {
        var chk = document.getElementById("<%= chkCopyFromHeadQuarter.ClientID %>");
        return chk;
    }
</script>

<asp:Panel ID="mainPanel" runat="server" CssClass="primaryFrameNoBorder">
   <table width="100%">
        <tr>
            <td style="text-align:right; vertical-align:top;width:120px;">
                <asp:Label CssClass="labelMessage" ID="lblname" runat="server" Text="Name:"></asp:Label>
            </td>
            <td style="text-align:left; vertical-align:top">
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ValidationGroup="Save" ID="require1" runat="server" ControlToValidate="txtName" Display="Dynamic" CssClass="requiredField"
                    ErrorMessage="required" Text="required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align:right; vertical-align:top">
                <asp:Label CssClass="labelMessage" ID="Label1" runat="server" Text="ABN:"></asp:Label>
            </td>
            <td style="text-align:left; vertical-align:top">
                 <asp:TextBox ID="txtABN" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align:right; vertical-align:top">
                <asp:Label CssClass="labelMessage" ID="Label2" runat="server" Text="Address:"></asp:Label>
            </td>
            <td style="text-align:left; vertical-align:top">
                <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align:right; vertical-align:top">
                <asp:Label CssClass="labelMessage" ID="Label3" runat="server" Text="Phone:"></asp:Label>
            </td>
            <td style="text-align:left; vertical-align:top">
                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align:right; vertical-align:top">
                <asp:Label CssClass="labelMessage" ID="Label4" runat="server" Text="Fax:"></asp:Label>
            </td>
            <td style="text-align:left; vertical-align:top">
                <asp:TextBox ID="txtFax" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align:right; vertical-align:top">
                <asp:Label CssClass="labelMessage" ID="Label5" runat="server" Text="Active:"></asp:Label>
            </td>
            <td style="text-align:left; vertical-align:top">
                <asp:CheckBox ID="chkActive" runat="server"></asp:CheckBox>
            </td>
        </tr>
   </table>
   <div id='divHr' runat="server"><hr  style='width:80%' /></div>
   <div style='height:10px'>&nbsp;</div>
   <div style='margin-right:40px'>
        <asp:CheckBox Checked="true" style='float:right' Text="Copy Data From Headquarter" ID="chkCopyFromHeadQuarter" runat="server"></asp:CheckBox>
   </div>
</asp:Panel>